package tonytech.wordcode.controller;

import rx.functions.Action0;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.function.Consumer;

/**
 * Created by hkl on 17-1-16.
 */
public interface TonyServiceControllerImpl<R,T>{
    // Controller 服务接口
    void service(R context, Consumer<T> consumer, Consumer<Throwable> onError,Action0 onCompleted);
    void service(R context);
    void errorHandler(Exception e,String errorMessage);

}
